package edu.nyu.hps.assignment10;

import java.util.ArrayList;
import java.util.List;


public class Cell {
	int value=0,x=0,y=0,bestValue = 0;
	boolean taken = false;
	ArrayList<Integer> possibilities = new ArrayList<Integer>();
	
	public Cell(int value,int x,int y) {
		this.value = value;
		this.x = x;
		this.y = y;
		for(int i=0;i<9;i++) {
			possibilities.add(new Integer(i+1));
		}
	}
	
	public void remove(int val) {
		for(int i=0;i<possibilities.size();i++) {
			if(possibilities.get(i).intValue() == val) {
				possibilities.remove(i);
			}
		}
	}
}
